<template>
  <div id="app">
    <button @click="mytest">点击</button>
    <router-link to="/chp01">chp01-插值表达式</router-link> |
    <router-link to="/chp02">chp02-class的绑定</router-link> |
    <router-link to="/chp03">chp03-style的绑定</router-link> |
    <router-link to="/chp04">chp04-if</router-link> |
    <router-link to="/chp05">chp05-for</router-link> |
    <router-link to="/chp06">chp06-事件绑定</router-link> |
    <router-link to="/chp07">chp07-表单输入</router-link> |
    <router-link to="/chp08">chp08-slot</router-link> |
    <router-link to="/chp09">chp09-组件传值</router-link> |
    <router-link to="/chp10">chp10-路由</router-link> |
    <router-link to="/chp121">chp121-vuex</router-link> |
    <router-link to="/chp122">chp122-vuex</router-link> |
    <router-view />
  </div>
</template>
<script>
export default {
  methods: {
    mytest () {
      this.$axios.get('http://localhost:8080/api/index_category')
    }
  }
}
</script>

<style>
</style>
